package com.wk.service;

import com.wk.bean.*;

import java.util.List;
import java.util.Map;


public interface UserService {

    //用户功能
    public WkUser queryUserByName(String u);//查询姓名
    public  int register(WkUser user);//注册
    public   List<WkUser> login(Map<String,Object> map);//登入
    public List<Breakdown> queryBreakdown(Map<String,Object> map);
    int updateUser(WkUser user);//更新
    WkUser queryUserById(int userId);//查询ID
    List<WkUser> listUsersWithPagination(PageInfo pageInfo);//用户分页
    int deleteUser(int userId);//删除
    int insertUser(WkUser user);//添加用户
    WkUser queryUserByFields(Map<String, Object> fields);//查询
    public List<Menu> queryMenuByRole(int role_id );//菜单

    //患者功能
    List<Patient> listPatientWithPaginationa(PageInfo pageInfo);//患者分页
    int deletePatient(int patientId);//删除患者信息
    Patient queryPatientByFields(Map<String, Object> fields);//查询

    //医生功能
    //医生分页
    List<Doctor> listDoctorWithPagination(PageInfo pageInfo);

    //预约功能
    //预约分页
    List<Appointment> listAppointmentWithPagination(PageInfo pageInfo);

    //病例功能
    //病例分页
    List<WkVisit> listVisitWithPagination(PageInfo pageInfo);//病例分页

    //科室功能
    //科室分页
    List<Departments> listDepartmentsWithPagination(PageInfo pageInfo);//科室分页
}
